const picture:string = require('./picture.png') as string;

interface IResource{
  fetch(userId:number):string;
}

class Resource implements IResource{
  fetch(userId:number):string{
    console.log(`真实资源调用方法，传入用户id：${userId}`);
    return picture;
  }
}

export {IResource, Resource};